package mrusanov.staff

import java.util.Date
import mrusanov.player.Talent
import mrusanov.bonus.{ SponsorsNegotiationBonus, MerchandiseBonus }
import mrusanov.team.Club

class MarketingManager(name: String, birthDay: Date, exp: Int, talent: Talent) extends ClubEmployee(name, birthDay, exp, talent) {
	def merchandiseBonus = MerchandiseBonus(this)
	def sponsorNegotiationsBonus = SponsorsNegotiationBonus(this)
	override def isClubInfrastructureGoodEnough(club: Club) = true
	override def addToClubStaff(club: Club) {
		require(canBeAddedToClubStaff(club))
		club.clubStaff.marketingManager = Some(this)
	}

	override def canBeAddedToClubStaff(club: Club) = club.clubStaff.marketingManager.isEmpty

}
